b3b185b3e31447b1977e07a79b7580781020a189,drools-core/src/main/java/org/drools/agent/FileScanner.java,FileScanner,readPackage,#File#,96

Before Change



				FileInputStream fis = new FileInputStream(pkgFile);

				p1_ = (Package) DroolsStreamUtils.streamIn(fis);

				fis.close();

After Change



                FileInputStream fis = new FileInputStream( pkgFile );

                o = DroolsStreamUtils.streamIn( fis );

                fis.close();

            } catch ( FileNotFoundException e ) {
                this.listener.exception( e );
                this.listener.warning( "Was unable to find the file " + pkgFile.getPath() );
            } catch ( IOException e ) {
                this.listener.exception( e );
            } catch ( ClassNotFoundException e ) {
                this.listener.exception( e );
                this.listener.warning( "Was unable to load a class when loading a package. Perhaps it is missing from this application." );
            }

            if ( o instanceof KnowledgePackageImp ) {
                return ((KnowledgePackageImp) o).pkg;
            } else {
                return (Package) o;
            }